<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <title>弹动小球使用演示</title>
    <style>
        .ball {
            position: fixed;
            z-index: 99999;
            line-height: 2.75rem;
            width: 2.75rem;
            height: 2.75rem;
            padding: .5rem;
            text-align: center;
            border-radius: 50%;
            color: #fff;
            /*透明边框，使元素看起来与边缘保持一定距离*/
            border: .6rem solid transparent;
            background-color: #ed424b;
            background-clip: padding-box;
            text-decoration: none;
        }
    </style>
</head>

<body>

<a href="javascript:" id="ball" class="ball">拖我</a>

<script src="../src/Inertia.js"></script>
<script>
    new Inertia(document.getElementById('ball'));
</script>
</body>
</html>
